import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import TypeNav from './components/TypeNav';
import 'swiper/css/swiper.min.css';
import Pagination from '@/components/Pagination';
import '@/mock/mockServe';
import Dialog from '@/components/Dialog';
Vue.config.productionTip = false;

//全局注册TypeNav,因为很多地方都用到了这个组件。
Vue.component(TypeNav.name, TypeNav);
Vue.component(Pagination.name, Pagination);
Vue.component(Dialog.name, Dialog);

const vm = new Vue({
  render: (h) => h(App),
  router,
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  store, //注意点!这里是小写的，切不可以写成大写
}).$mount('#app');
